﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="CouponCode.aspx.vb" Inherits="CouponCode" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style>
        .pdf
        {
               background: none repeat scroll 0 0 #FFFFFF;
    border: 4px dashed #333333;
    margin: 100px auto 0;
    min-height: 202px;
    padding: 24px 20px;
    text-align: center;
    width: 600px;
        }
    </style>
</head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
    $("#btnPrint").live("click", function () {
        var divContents = $("#printablediv").html();
        var printWindow = window.open('', '', 'height=400,width=800');
        printWindow.document.write('<html><head><title>DIV Contents</title>');
        printWindow.document.write('</head><body><div style=" text-align: center;">');
        printWindow.document.write(divContents);
        printWindow.document.write('</div></body></html>');
        printWindow.document.close();
        printWindow.print();
    });
</script>
<body style="background: none repeat scroll 0% 0% rgb(255, 255, 255);">
    <form id="form1" runat="server">
    <div id="mainContainer" runat="server">
        <input type="button" value="Print" id="btnPrint" style="margin-bottom: -90px; margin-left: 340px;" />
        <div class="pdf" id="printablediv">
            <img src="images/logo_small.png" alt="Logo" />
            <br />
            <br />
            <asp:Label ID="lblCode" runat="server" Text="" Font-Size="30px" ForeColor="#4F5150"></asp:Label>
            <br />
            <br />
            <asp:Label ID="lblDescription" runat="server" Text=""
                ForeColor="#4F5150"></asp:Label>
        </div>
    </div>
    <div style="text-align: center; margin: 50px auto 0; padding: 50px 20px;">
        <asp:Label ID="lblerror" runat="server" Text="" ForeColor="red" Font-Size="26px"></asp:Label>
    </div>
    </form>
</body>
</html>
